﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Universe.TrafficProfiler
{
    public static class ControlSyncExtention
    {
        public static void RunSynchronously(this Control owner, Action action)
        {
            if (owner.InvokeRequired)
                owner.BeginInvoke(action);
            else
                action();

        }
    }
}
